<template>
  <web-view :src="url" @error="handleError" @load="onLoad"></web-view>
</template>

<script>
export default {
  data() {
    return {

    };
  },
  onLoad(options) {
    /* console.log('onlaod');
    let { url } = options;
    console.log('url:111', url, options);
    this.url = url;
    // console.log(e); */
  },
  onShow() {
    console.log('url', this.$mp.query.url);
    this.url = this.$mp.query.url
  },
  methods: {
    handleError(e) {
      console.log(e);
    },
    onLoad(e) {
      console.log(e);
    }
  },
};
</script>

<style scoped lang="scss">
</style>
